package com.itheima.Service.impl;

import com.itheima.Mapper.BookMapper;
import com.itheima.Service.BookService;
import com.itheima.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookMapper mapper;

    @Override
    public List<Book> selectAll() {
        List<Book> books = mapper.fidndAll();
        return books;
    }
}
